/*
 * @Author: Licia danlyJ_713@163.com
 * @Date: 2024-07-02 09:49:57
 * @LastEditors: Licia danlyJ_713@163.com
 * @LastEditTime: 2024-07-12 17:04:38
 * @FilePath: \robot-auto-drive-platform\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import {
  createRouter,
  createWebHashHistory,
} from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/login",
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/Login/index.vue"),
  },

  {
    path: "/page",
    name: "page",
    component: () => import("@/views/Page/index.vue"),
  },
  {
    path: "/outcome",
    name: "outcome",
    component: () => import("@/views/Outcome/index.vue"),
  },
  {
    path: "/register",
    name: "register",
    component: () => import("@/views/Register/index.vue"),
  },
  {
    path: "/statistics",
    name: "statistics",
    component: () => import("@/views/Statistics/index.vue"),
  },
  {
    path: "/course",
    name: "course",
    component: () => import("@/views/Course/index.vue"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
